<link rel="stylesheet" type="text/css" href="views/home/search/search.css">

<div id="h_search" ng-controller="SearchController">
	<!--筛选页-->
	<div id="seach_content"    ng-show="!islook">
		<div class="h_search_topBar">
			<div class="left">
				<input type="text" placeholder="春季特价新款抢先看" ng-model="keyWord" ng-change="keyList(keyWord)"/>
				<i class="h_del" ng-click="keynull();keyList(keyWord)"></i>
			</div>
			<div class="right">
				<a ui-sref="home">取消</a>
			</div>
		</div>
		<!--提示列表-->
		<ul class="tip_list" ng-click="islook=!islook">
			<li class="tip_item" ng-repeat="x in keylog" data_id="{{x.category.id}}" ng-click="keytext($event)">{{x.category.name}}</li>
			<li class="tip_item" ng-repeat="y in allgood | filter:keyWord "><hello data-id="{{y.id}}"><a ui-sref="detail" class="tip_item_a" ng-click="keytext($event)">{{y.name}}</a></hello></li>
		</ul>
		<div class="bar_content" >
			<div class="h_histoty h_hisre" ng-show="hisshow">
				<div class="title">
					<span class="txt">历史记录</span>
					<i class="laji" ng-click="ishis()"></i>
				</div>
				<div class="content" ng-click="islook=!islook">
					<a class="item" ng-repeat="x in hisArr" data-keyword="{{x.hisWord}}" ng-click="his($event)">{{x.histext}}</a>					
				</div>
			</div>
			<div class="hot_search h_hisre">
				<div class="title">
					<span class="txt">热门搜索</span>
				</div>
				<div class="content" ng-click="islook=!islook">
					<a class="item" ng-repeat="x in hotArr" data-keyword="{{x.hotWord}}" ng-click="his($event)">{{x.hotText}}</a>					
					<a class="item" ui-sref="special">专题</a>
				</div>
			</div>
		</div>
		
	</div>
	<!--筛选后列表页面-->
	<div id="seach_list" ng-show="islook">
		<header class="h_hd">
			<div class="h_topBar">
				<span class="h_hc" ng-click="isShow = !isShow;hc()"></span>
				<div class="left" ng-click="islook=!islook">
					<input type="text" placeholder="春季特价新款抢先看" ng-model="text"/>
					<i></i>
				</div>
			</div>
			<div class="h_meun" ng-show="isShow" ng-click="isShow = !isShow;hc()">
				<ul class="h_list">
					<li class="h_item">
						<a ui-sref="home">
							<i class="item_img"></i>
							<span class="item_txt">首页</span>
						</a>
					</li>
					<li class="h_item">
						<a ui-sref="special">
							<i class="item_img"></i>
							<span class="item_txt">专题</span>
						</a>
					</li>
					<li class="h_item">
						<a ui-sref="sort">
							<i class="item_img"></i>
							<span class="item_txt">分类</span>
						</a>
					</li>
					<li class="h_item">
						<a ui-sref="mine">
							<i class="item_img"></i>
							<span class="item_txt">个人</span>
						</a>
					</li>
				</ul>
			</div>
			<div class="h_conditionSort">
				<div class="conditiion">
					<div data-index="0"  ng-click="changecolor($event)" ng-class="{fc:0==index}">综合</div>
					<div data-index="1" class="much" ng-click="updws();changecolor($event)" ng-class='{fc:1==index}'>
						<span data-index="1">价格</span>
						<i class="upd" data-index="1"ng-class="{upd:true,m_up:up,m_down:down}"></i>
					</div>
					<div data-index="2" ng-click="changecolor($event)"  ng-class="{fc:2==index,fen:true}" ><a ui-sref="sort" class="to_sort">分类</a>
						</div>
				</div>
				<div class="con_sort">
					<a class="sitem bfc">分类</a>
					<a class="sitem">洗护</a>
				</div>
			</div>
		</header>
		
		<!--商品列表-->
		<div class="h_searchList">
			<ul class="h_goodList">
				<li class="item" ng-repeat="x in conLists |orderBy:ordkey:updw" >
					<hello data-id="{{x.id}}">
						<a ui-sref="detail">
							<div class="pic">
								<img lazy-src="{{x.primaryPicUrl}}"/>
							</div>
							<p class="name">{{x.name}}</p>
							<div class="money">¥{{x.retailPrice}}</div>
							<div class="hasColor" ng-if="x.colorNum !=0">
								<span>{{x.colorNum}}</span>
								<span>色</span>
								<span>可</span>
								<span>选</span>
							</div>
						</a>
					</hello>
				</li>
			</ul>
		</div>
	</div>
</div>



















